﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Volo.Abp.Data;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;

namespace Himp.Outpatient
{
    /// <summary>
    /// 订单明细
    /// </summary>
    public class OtpOrdDetl : Entity<Guid>, IMultiTenant, IHasExtraProperties
    {
        /// <summary>
        /// 收费类别编码
        /// </summary>
        public string ChrgitmTypeCodg { get; set; }

        /// <summary>
        /// 收费类别名称
        /// </summary>
        public string ChrgitmTypeName { get; set; }

        /// <summary>
        /// 公用项目编码
        /// </summary>
        public string PubItemCodg { get; set; }

        /// <summary>
        /// 公用项目名称
        /// </summary>
        public string PubItemName { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public decimal Pric { get; set; }

        /// <summary>
        /// 折扣率
        /// </summary>
        public decimal DiscRate { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public decimal Cnt { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        public decimal Amt { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid OrdInfoId { get; set; }

        /// <summary>
        /// 订单
        /// </summary>
        public OtpOrdRec OrdInfo { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public ExtraPropertyDictionary ExtraProperties { get; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }
    }
}
